package com.ruoyi.wx.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author moxiu
 * @since 2021-11-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pt_preview")
@ApiModel(value="PtPreview对象", description="")
public class PtPreview implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "测验id")
    @TableId(value = "preview_id", type = IdType.AUTO)
    private Long previewId;

    @ApiModelProperty(value = "学生id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "题目id")
    @TableField("question_id")
    private Long questionId;

    @ApiModelProperty(value = "回答")
    @TableField("answer")
    private String answer;

    @ApiModelProperty(value = "是否正确")
    @TableField("is_right")
    private Integer isRight;

    @ApiModelProperty(value = "得分")
    @TableField("score")
    private Double score;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否启用（1：启用；0：禁用）")
    @TableField("is_enable")
    private Boolean isEnable;


}
